﻿using System;
using System.Media;
using System.Timers;
using Microsoft.Kinect;
using SVU.Model;

namespace SVU.Managers
{
    public class SvuConstants
    {
        public static int CountDownTimerSecondsElapsed;
        public static Timer AuthenticationCountDownTimer;
        public static SoundPlayer AlarmPlayer;
        public static KinectSensor KinectSensor = KinectSensor.KinectSensors[0];
        public static DateTime LastTimeCountDownTimerElapsed;

        static SvuConstants()
        {
            AuthenticationCountDownTimer = new Timer();
            AuthenticationCountDownTimer.Interval = 1000; // 1 seconds
            AuthenticationCountDownTimer.Elapsed += AlarmManager.AuthenticationCountDownTimerElapsed;

            AlarmPlayer = new SoundPlayer(@"..\..\AudioResources\WindowsExclamationMod.wav");
        }

        public static DateTime LastUploadDate { get; set; }
        public static ProcessState State { get; set; }
    }
}